import Vue from "vue";
import App from "./App.vue";
import "amfe-flexible";
import Vant from "vant";
import "vant/lib/index.css";
import NavBar from "./components/NavBar/index.vue";
Vue.component("NavBar", NavBar);
import goTop from "./components/goTop/index.vue";
Vue.component("goTop", goTop);

import Tab from "./components/Tab/index.vue";
Vue.component("Tab", Tab);

// 引入表单验证
import "./utils/validate";

// footer全局组件
import Footer from "./components/Footer/index.vue";
Vue.component("Footer", Footer);
//设置Tabbar全局组件
// import Tabbar from "./components/Tabbar";
// Vue.component("Tabbar", Tabbar);
//引入路由器
import router from "./router";
//引入store
import store from "./store";

Vue.use(Vant);
Vue.config.productionTip = false;

new Vue({
  render: (h) => h(App),
  router,
  store,
}).$mount("#app");
